package socketVersion.Backend.Flights;

import java.io.Serializable;

public class Flight implements Serializable{
	private static final long serialVersionUID = 3262630280925672604L;
	private int flightNum;
	private int flightSeats;
	private int flightPrice;
	
	public Flight(int flightNum,int flightSeats,int flightPrice){
		this.flightNum = flightNum;
		this.flightPrice = flightPrice;
		this.flightSeats = flightSeats;
	}
	
	public int getFlightNum(){
		return flightNum;
	}
	
	public int  getPrice(){
		return flightPrice;
	}

	public int getSeats(){
		return flightSeats;
	}
	
	public boolean equals(Flight c){
		if(c.getFlightNum() == flightNum){
			return true;
		}
		else{
			return false;
		}
	}
}
